package com.sist.ocs.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName QueueConfig
 * @Description TODO
 * @Author: xmk
 * @Date: 2018/10/25 10:07
 * @Version: 1.0
 */
@Configuration
public class QueueConfig {

    @Bean(name = "firstQueue")
    public Queue firstQueue() {
        return new Queue("first-queue", true, false, false);
    }

    @Bean(name = "secondQueue")
    public Queue secondQueue() {
        return new Queue("second-queue");
    }
}
